home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2598 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: wiedmann.neckar-alb.de!jochen
  2. From: jochen@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN (Jochen Wiedmann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Opening Libraries "Quietly"
  5. Date: 1 Feb 1996 18:35:42 GMT
  6. Organization: ISS Internet Service Stuttgart GmbH
  7. Message-ID: <4er15u$8sf@iss1.neckar-alb.de>
  8. References: <DLzwBH.4Eu@utcc.utoronto.ca>
  9. Reply-To: wiedmann@neckar-alb.de
  10. NNTP-Posting-Host: wiedmann.neckar-alb.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Norman Baccari (normb@gpu.utcc.utoronto.ca) wrote:
  14.  
  15. : From what I understand, when calling OpenLib() this causes the
  16. : library thats being opened to call its own init proceedure.
  17. : I want to open the library to get Ver/Rev and id_string and 
  18. : quietly leave without affecting anything. When I do this now
  19. : some libraries do there "init thing" and will try and run
  20. : themselves. Toolmanager.library will do this and so does
  21. : vmm.library. In an extreme case the system will crash on the
  22. : OpenLib() as it does when the amos.library opened. Is there a
  23. : way to get the info I want from any disk based library,
  24. : quietly & legally?
  25.  
  26. How about examining System("C:Version Sys:MyLib.library")? (Not the
  27. best idea, of course, but does what you want.) You could still do
  28. a OpenLibrary(), if the above call fails.
  29.  
  30.  
  31. Bye,
  32.  
  33. Jochen
  34.  
  35.